/*  1:   */ package org.jetbrains.debugger.sourcemap;
/*  2:   */ 
/*  3:   */ final class Base64VLQ
/*  4:   */ {
/*  5:   */   private static final int a = 5;
/*  6:   */   private static final int b = 32;
/*  7:   */   private static final int c = 31;
/*  8:   */   private static final int d = 32;
/*  9:   */   
/* 10:   */   public static int decode(CharIterator paramCharIterator)
/* 11:   */   {
/* 12:26 */     int i = 0;
/* 13:27 */     int j = 0;
/* 14:   */     int k;
/* 15:   */     do
/* 16:   */     {
/* 17:30 */       k = Base64.b[paramCharIterator.next()];
/* 18:31 */       assert (k != -1) : "invalid char";
/* 19:   */       
/* 20:33 */       i += ((k & 0x1F) << j);
/* 21:34 */       j += 5;
/* 22:36 */     } while ((k & 0x20) != 0);
/* 23:38 */     int m = (i & 0x1) == 1 ? 1 : 0;
/* 24:39 */     i >>= 1;
/* 25:40 */     return m != 0 ? -i : i;
/* 26:   */   }
/* 27:   */   
/* 28:   */   private static final class Base64
/* 29:   */   {
/* 30:   */     private static final String a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/* 31:56 */     private static final int[] b = new int[256];
/* 32:   */     
/* 33:   */     static
/* 34:   */     {
/* 35:59 */       for (int i = 0; i < "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".length(); i++) {
/* 36:60 */         b["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i)] = i;
/* 37:   */       }
/* 38:   */     }
/* 39:   */   }
/* 40:   */   
/* 41:   */   static abstract interface CharIterator
/* 42:   */   {
/* 43:   */     public abstract boolean hasNext();
/* 44:   */     
/* 45:   */     public abstract char next();
/* 46:   */   }
/* 47:   */ }


/* Location:           E:\idea\
 * Qualified Name:     org.jetbrains.debugger.sourcemap.Base64VLQ
 * JD-Core Version:    0.7.0.1
 */